<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>


        function fun1(num,...params){
            console.log(`第一个参数：${num}`);
            console.log(`第二个参数：${JSON.stringify(params)}`)
           fun2(params)
        }

        function fun2(...params){
            console.log(`fun2:${JSON.stringify(params)}`) // 可变参数在传入的参数统一封装成数组
        }

        fun1(1); 
        fun1(1,2,3)
        fun1(1,Uint8Array.of(32,23))
    </script>
</body>
</html>